const winston = require('winston');
const config = require('./src/app.config/env/context.config');
var app = require('./src/app.config/app');
// var jmsMerConsumer = require('./src/app/jms/jms.merchant.consumer');
var server = require('./src/app.config/env/socket');

process.on('uncaughtException',function (err) {
    winston.error('Caught exception:', err);
});

server.listen(app.get('port'),function () {
    winston.info(config.server.title, 'application started');
    winston.info('Port:', config.server.port);
});

module.exports = app;